<template>
  <el-aside class="left-side-bar">
    <el-scrollbar class="scroll-bar">
      <div v-for="item in tabList" :key="item.id" class="item">
        {{ item.name }}
      </div>
    </el-scrollbar>
  </el-aside>
</template>

<script setup lang="ts">
const tabList = ref([
  { name: "饼图", id: 3, icon: "" },
  { name: "柱状图", id: 1, icon: "" },
  { name: "折线图", id: 2, icon: "" },
  { name: "词云图", id: 3, icon: "" },
  { name: "雷达图", id: 3, icon: "" },
  { name: "水球图", id: 3, icon: "" },
  { name: "桑基图", id: 3, icon: "" },
  { name: "漏斗图", id: 3, icon: "" },
  { name: "仪表盘", id: 3, icon: "" },
  { name: "关系图", id: 3, icon: "" },
  { name: "旭日图", id: 3, icon: "" },
  { name: "象形柱图", id: 1, icon: "" },
  { name: "散点地图", id: 3, icon: "" },
  { name: "列表滚动", id: 3, icon: "" },
]);
</script>

<style scoped lang="scss">
.left-side-bar {
  width: 80px;
  background: #fafafa;
  height: calc(100vh - 60px);
  overflow: hidden;
  .scroll-bar {
    padding: 7px;
    box-sizing: border-box;
  }
  .item {
    font-size: 15px;
    cursor: pointer;
    padding: 3px 0;
    text-align: center;
    height: 60px;
    // border: 1px solid;
    display: flex;
    justify-content: center;
    align-items: center;
    &:hover {
      color: var(--el-color-primary);
      background-color: var(--el-color-primary-light-9);
      transition: color 0.3s;
    }
  }
}
</style>
